﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;

namespace MMITCore
{
    
    partial class Notification
    {
        private SmtpClient _mailclient = null;
        private MailMessage _msg = null;

        public Notification()
        {
            _mailclient = new SmtpClient();
            _mailclient.DeliveryMethod = SmtpDeliveryMethod.Network;
            _mailclient.EnableSsl = true;

        }

        public void SendTemplateEmail(string template, string[] to, string from, string from_alias, string subject)
        {
            if (string.IsNullOrEmpty(template))
            {
                throw new InvalidOperationException("template parameter of the email manager is empty");
            }
            MailAddressCollection toList = new MailAddressCollection();
            MailAddress recipientAddress = null;
            
            //Log Actions
        }

        public void SendPlainEmail(string[] to, string from, string from_alias, string subject, string content)
        {
            //Log Actions
        }

        public void SendSMS()
        {
            //Log Actions
        }

    }
}
